package com.cargohu.aishouyu.member.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.cargohu.aishouyu.member.entity.MemberSign;
import com.cargohu.aishouyu.member.req.MemberSignRequest;
import com.cargohu.aishouyu.member.resp.MemberSignDetailVo;
import com.cargohu.aishouyu.member.resp.MemberSignResponse;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * 用户签到记录 Mapper 接口
 *
 * @author yww
 * @since 2023-11-29
 */
@Mapper
public interface MemberSignMapper extends BaseMapper<MemberSign> {

    /**
     * 用户签到记录详情
     *
     * @param id
     * @return
     */
    MemberSignDetailVo getMemberSignById(Long id);

    /**
     * 用户签到记录分页列表
     *
     * @param memberSignRequest
     * @return
     */
    List<MemberSignResponse> getMemberSignList(MemberSignRequest memberSignRequest);

}
